<!DOCTYPE html>
<html>
<head>
    <title>gf规范化路由后端版本</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style type="text/css">
        .tab-main{
            padding: 20px;
        }
        .tab-baby{
            padding: 20px;
        }
    </style>
    <script>
        function Click_server_api(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("server_api").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_server_server(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("server_server").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_server_controller(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("server_controller").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_server_model(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("server_model").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_server_cmd(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("server_cmd").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_web_api(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("web_api").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_web_form(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("web_form").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_web_routers(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("web_routers").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
        function Click_web_table(){
            var range = document.createRange()
            var referenceNode =  document.getElementsByClassName("web_table").item(0)
            console.log(referenceNode)
            range.selectNodeContents(referenceNode)
            var selection = window.getSelection()
            selection.removeAllRanges()
            selection.addRange(range)
        }
    </script>
</head>

<body>
<div class="panel panel-primary curd" style="margin: 2px">
    <div class="panel-heading">   {{.Label}} {{.Name}}   单一数据源的的CURD</div>
    <div class="panel-body">
        <div>
            <ul id="myTab" class="nav nav nav-tabs nav-justified">
                <li class="active"><a href="#server_api" data-toggle="tab">server_api</a></li>
                <li><a href="#server_server" data-toggle="tab">server_server</a></li>
                <li><a href="#server_controller" data-toggle="tab">server_controller</a></li>
                <li><a href="#server_model" data-toggle="tab">server_model</a></li>
                <li><a href="#server_cmd" data-toggle="tab">server_cmd</a></li>
                <li><a href="#web_api" data-toggle="tab">web_api</a></li>
                <li><a href="#web_form" data-toggle="tab">web_form</a></li>
                <li><a href="#web_table" data-toggle="tab">web_table</a></li>
                <li><a href="#web_routers" data-toggle="tab">web_routers</a></li>
            </ul>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade in active tab-main" id="server_api">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_server_api()">复制文本</button>
                        <xmp class="server_api">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/server_api.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="server_server">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_server_server()">复制文本</button>
                        <xmp class="server_server">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/server_server.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="server_controller">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_server_controller()">复制文本</button>
                        <xmp class="server_controller">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/server_controller.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="server_model">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_server_model()">复制文本</button>
                        <xmp class="server_model">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/server_model.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="server_cmd">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_server_cmd()">复制文本</button>
                        <xmp class="server_cmd">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/server_cmd.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="web_api">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_web_api()">复制文本</button>
                        <xmp class="web_api">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/web_api.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="web_form">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_web_form()">复制文本</button>
                        <xmp class="web_form">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/web_form.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="web_routers">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_web_routers()">复制文本</button>
                        <xmp class="web_routers">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/web_routers.tpl" .}}
                        </xmp>
                    </div>
                </div>
                <div class="tab-pane fade tab-main" id="web_table">
                    <div class="jumbotron tab-baby">
                        <button onclick="Click_web_table()">复制文本</button>
                        <xmp class="web_table">
                            {{include "internal/controller/controller_CoedAuto/singleCrud/template/components/web_table.tpl" .}}
                        </xmp>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>

</html>



